package com.githan56.mybatis_test.Mapper;

import com.githan56.mybatis_test.entity.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/3/26 10:59
 */
@Mapper
public interface BookMapper {

    int addBook(Book book);

    int deleteBookById(Integer id);

    int updateBookById(Book book);

    List<Book> getAllBooks();
}
